package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.CheckItemDao;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckItem;
import com.itheima.service.CheckItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

//@Service(interfaceClass = CheckItemService.class)
//@Transactional
public class CheckItem2ServiceImpl implements CheckItemService {
    @Autowired
    CheckItemDao checkItemDao;
    @Override
    public void add(CheckItem checkItem) {
        try {
            checkItemDao.add(checkItem);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public PageResult pageQuery(QueryPageBean queryPageBean) {
        return null;
    }

    @Override
    public int deleteById(Integer id) {
        return 0;
    }

    @Override
    public void edit(CheckItem checkItem) {

    }

    @Override
    public CheckItem findById(Integer id) {
        return null;
    }
}
